<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="renderer" content="webkit">
    <title>SeaJS demo - 邮件示例</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>&nbsp;</h1>
    <div class="letter" id="letter"></div>

    <script src="../../dist/js/libs/sea-2.1.1.min.js"></script>
    <script src="js/sea_config.js"></script>
    <script>
        seajs.use(['showMsg', 'date'], function(showMsg, getDate) {
            showMsg($('#letter'), function(_this) {
                _this.append('<p class="date">' + getDate('y-M-d h:m:s') + '</p>');
            });
        });

        seajs.use('showTitle', function(showTitle) {
            showTitle($('h1'));
        });
    </script>
</body>
</html>
